# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=powerpc-utils
pkgver=1.3.6
pkgrel=0
pkgdesc="Maintenance utilities for PowerPC platforms"
url="https://github.com/nfont/powerpc-utils"
arch="ppc ppc64 ppc64le"
options="!check"  # No test suite.
license="GPL-2.0+"
makedepends="autoconf automake zlib-dev"
depends="bash bc"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/nfont/$pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	default_prepare
	cd "$builddir"
	./autogen.sh
}

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man \
		--without-librtas
	make
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="a30516ccdfe19a198cd5c1a7ad3646d15b599fb40f772cbc7ac95c6d3b364575a3ebb16708022886ba3bcd3184070a3f4d72b649427879fcdd2655406470e977  powerpc-utils-1.3.6.tar.gz"
